<script lang="ts">
    //Props组件属性声明例子
   const { name, msg } = $props();//解构赋值
</script>
<div>
    <p>Name: {name}</p>
    <p>msg: {msg}</p>
</div> 